package com.ruoyi.project.lely.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

/**
 * 分组讨论
 *
 * @author luoyong
 */
@Data
@ApiModel("分组讨论 入参DTO")
public class LyGrouponDTO {

    @ApiModelProperty("ID")
    private Long id;

    @NotNull
    @ApiModelProperty("关联的订单ID")
    private Integer orderId;

    @ApiModelProperty("参与的团购ID，仅当user_type不是1")
    private Integer grouponId;

    @NotNull
    @ApiModelProperty("团购规则ID，关联ly_groupon_rules表ID字段")
    private Integer rulesId;

    @NotNull
    @ApiModelProperty("用户ID")
    private Integer userId;

    @NotNull
    @ApiModelProperty("创建者ID")
    private Integer creatorUserId;

    @Length(max = 255, message = "团购分享图片地址长度不能超过255位")
    @ApiModelProperty("团购分享图片地址")
    private String shareUrl;

    @NotNull
    @ApiModelProperty("是否已经支付")
    private Integer payed;

}
